﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="XmlLanguage"
    targetNamespace="http://codeplex.com/colonization/xmllanguage.xsd"
    elementFormDefault="qualified"
    xmlns="http://codeplex.com/colonization/xmllanguage.xsd"
    xmlns:mstns="http://codeplex.com/colonization/xmllanguage.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
  <xs:element name="Languages" type="Languages" />
  <xs:complexType name="Languages">
    <xs:sequence maxOccurs="1" minOccurs="1">
      <xs:element name="Definitions" type="Definitions" />
      <xs:element name="Keys" type="Keys" />
    </xs:sequence>
  </xs:complexType>
  
  <xs:complexType name="Definitions">
    <xs:sequence maxOccurs="unbounded" minOccurs="1">
      <xs:element name="Definition" type="Definition" />
    </xs:sequence>
  </xs:complexType>
  
  <xs:complexType name="Definition">
    <xs:sequence>
      <xs:element name="Id" type="xs:ID" nillable="0" />
      <xs:element name="Lcid" type="xs:int" nillable="0" />
      <xs:element name="Name" type="xs:string" nillable="1" />
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Keys">
    <xs:sequence maxOccurs="unbounded" minOccurs="0">
      <xs:element name="Key" type="Key" />
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Key">
    <xs:sequence maxOccurs="1" minOccurs="1">
      <xs:element name="Items" type="Items" />
    </xs:sequence>
    <xs:attribute name="code" type="xs:ID" use="required" />
  </xs:complexType>

  <xs:complexType name="Items">
    <xs:sequence minOccurs="1" maxOccurs="unbounded">
      <xs:element name="Item" type="Item" />
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Item">
    <xs:attribute name="lng" type="xs:IDREF" use="required" />
    <xs:attribute name="value" type="xs:string" use="optional" />
  </xs:complexType>
</xs:schema>
